package com.truing.flycodebill.workbench.web.controller;

import com.truing.flycodebill.workbench.service.BillTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@ResponseBody
@CrossOrigin
public class BillTypeController {

    @Resource
    private BillTypeService billTypeService;

    @RequestMapping("/showBillType.do")
    public Object showBillType(){
        return billTypeService.queryAllBillTypes();
    }
}
